import App from './App'
import tools from 'common/tools.js';
import axios from 'common/axios.js'
import {ajax} from 'common/ajax.js'
import * as urls from 'common/path.js'
// as 起别名

Vue.config.productionTip = false
Vue.prototype.$axios = axios; //挂在到Vue实例上
 
Vue.prototype.Http = axios; //挂在到Vue实例上
Vue.prototype.$tools = tools; //挂在到Vue实例上
Vue.prototype.$ajax = ajax; //挂在到Vue实例上
Vue.prototype.$urls = urls; //挂在到Vue实例上
App.mpType = 'app'
 


// #ifndef VUE3
import Vue from 'vue'
Vue.config.productionTip = false
App.mpType = 'app'
const app = new Vue({
    ...App
})
app.$mount()
// #endif

// #ifdef VUE3
import { createSSRApp } from 'vue'
export function createApp() {
  const app = createSSRApp(App)
  return {
    app
  }
}
// #endif